package com.pine.common.database.config;

import com.pine.common.database.constant.SupportedInnerInterceptorEnum;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * mybatis-plus自定义配置属性
 *
 * @author song tools
 * @since 2024-08-01
 */
@Data
@ConfigurationProperties(prefix = "pine.common.database")
public class MybatisPlusCustomProperties {

    /**
     * mybatis-plus-inner拦截器类名集合
     */
    private List<SupportedInnerInterceptorEnum> innerInterceptors;

    /**
     * 是否打印sql
     */
    private Boolean printSql = false;

    /**
     * 加解密key (16位以上的字母和数字组合)
     */
    private String sensitiveTextKey = "84544012a5246bac71591fa0cc54329c";

    /**
     * 加解密前缀
     */
    private String sensitiveTextPrefix = "PINE";
}
